#ifndef NETLIB_NONCOPYABLE_H
#define NETLIB_NONCOPYABLE_H

// 标识类noncopyable，用来限制子类，使其无法拷贝

namespace netlib
{

class noncopyable
{
public:
    noncopyable(const noncopyable&) = delete;
    void operator=(const noncopyable&) = delete;

protected:
    noncopyable() = default;
    ~noncopyable() = default;
};

} // namespace netlib end

#endif